package com.xxbing.servlet;

import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * Servlet implementation class ContextPathServlet
 */
@WebServlet(urlPatterns= {},loadOnStartup=2)
public class ContextPathInitServlet extends HttpServlet {
	
	public void init() throws ServletException {
		
		getServletContext().setAttribute("ctx", getServletContext().getContextPath());
	}
	
}
